gem "selenium-client", ">=1.2.18"
require 'selenium/client'
require 'yaml'


#require File.expand_path(File.dirname(__FILE__) + '/modules/admission')

CONFIG = YAML.load_file File.dirname(__FILE__) + '/../config.yml'


class SEL< Selenium::Client::Driver

  include Admission
  
def initialize(options = {})
    server_host = options[:server_host] || 'localhost'
    server_port = options[:server_port] || 4444
    browser = options[:browser] || '*firefox' #'*chrome'
    url = CONFIG['url']
    timeout_in_seconds = options[:timeout_in_seconds] || 300
    highlight_located_element = false
    super(server_host, server_port, browser, url, timeout_in_seconds, highlight_located_element)
  end  

end